package cn.com.db.dao;

import cn.com.db.model.Seller;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface SellerDao {
    void createSeller(Seller seller);
    Seller getSellerByAuthingId(@Param("authing_id") String authingId);
    Integer getSellerNum();
    Seller getSellerById(@Param("id") String id);
    List<Seller> getSeller(@Param("rowStart")Integer rowStart,
                           @Param("pageSize")Integer pageSize);
    Integer countSeller();
    void update(Seller seller);
}
